import { router as gitRouter } from "./router/git";
import { router as phoneRouter } from "./router/phone";
import { router as logRouter } from "./router/log";
import { router as appRouter } from "./router/app";
import path from "path";
const express = require("express");
const bodyParser = require("body-parser");
const app = express();
const port = 80;
app.use(express.static(path.resolve(__dirname, "../static")));
app.use(bodyParser.json());
app.use("/api/git", gitRouter);
app.use("/api/phone", phoneRouter);
app.use("/api/log", logRouter);
app.use("/api/app", appRouter);
app.listen(port, () => {
  console.log(`app listening on port ${port}`);
});
